package vn.vietel.pms.entity;

import static org.jboss.seam.ScopeType.EVENT;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;

@Entity
@Name("vgroupofproperty")
@Scope(EVENT)
@Table(name = "VGroupOfProperty")
public class VGroupOfProperty implements Serializable {

	private static final long serialVersionUID = 1L;
	private Long id;
	private String groupName; // may thang noi la do Generate = AUTO no bi nhu
								// vay
	private String groupDesc;

	// private Collection<VListOfProperty> listOfProperties;

	public VGroupOfProperty() {
	}

	public VGroupOfProperty(String groupName, String groupdesc) {
		super();
		this.groupName = groupName;
		this.groupDesc = groupdesc;
	}

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "groupId")
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public String getGroupDesc() {
		return groupDesc;
	}

	public void setGroupDesc(String groupDesc) {
		this.groupDesc = groupDesc;
	}
	/*
	 * @OneToMany (mappedBy="groupOfDevice", cascade = CascadeType.PERSIST)
	 * 
	 * @OrderBy(value="id") public Collection<VListOfProperty>
	 * getListOfProperties() { return listOfProperties; } public void
	 * setListOfProperties(Collection<VListOfProperty> listOfProperties) {
	 * this.listOfProperties = listOfProperties; }
	 */
}
